package com.luozongyao.eduService.client;


import com.luozongyao.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

    //单个删除视频
    @DeleteMapping("/eduVod/video/removeVideo/{id}")
    public R removeVideo(@PathVariable("id") String id);
    //批量删除视频
    @DeleteMapping("/eduVod/video/delete-batch")
    public R removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);

}
